package com.mervin.patterns.adapter.classadapter;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-20 23:42
 * @Description: 电压转换器 适配器类
 ***************************************/
public class VoltageAdapter extends Voltage220V implements IVoltage5V{

    @Override
    public int output5v() {
        int srcV = output220v();
        int dstv = srcV / 44;
        return dstv;
    }
}
